package com.cp.weixin.blog.service;

import com.cp.weixin.blog.repository.Tag;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.Cacheable;

import java.util.List;

@CacheConfig(cacheNames = "tagCache")
public interface TagService {

    @Cacheable
    List<Tag> getAll();
}
